home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / lib / X11 / config / Project.tmpl next >
Text File  |  1995-07-17  |  23KB  |  797 lines

  1. XCOMM -------------------------------------------------------------------------
  2. XCOMM X Window System Build Parameters
  3. XCOMM $XConsortium: Project.tmpl,v 1.157 93/06/24 10:51:47 dpw Exp $
  4.  
  5. /*****************************************************************************
  6.  *                                                                           *
  7.  *                            DEFAULT DEFINITONS                             *
  8.  *                                                                           *
  9.  * The following section contains defaults for things that can be overridden *
  10.  * in the various *.cf and site.def files.  DO NOT EDIT!                     *
  11.  *                                                                           *
  12.  ****************************************************************************/
  13.  
  14. #define ProjectX        5    /* do *not* change this line */
  15.  
  16. /*
  17.  * X-specific things
  18.  */
  19. #ifndef BuildServer
  20. #define BuildServer        YES
  21. #endif
  22. #ifndef BuildFontServer
  23. #define BuildFontServer        BuildServer
  24. #endif
  25. #ifndef BuildFonts
  26. #define BuildFonts        (BuildServer | BuildFontServer)
  27. #endif
  28. #ifndef BuildPex
  29. #define BuildPex        YES
  30. #endif
  31. #ifndef BuildPexClients
  32. #define BuildPexClients        BuildPex
  33. #endif
  34. #ifndef BuildPexExt
  35. #if BuildServer
  36. #define BuildPexExt        BuildPex
  37. #else
  38. #define BuildPexExt        NO
  39. #endif
  40. #endif
  41. #ifndef BuildXInputExt
  42. #define BuildXInputExt        NO
  43. #endif
  44. #ifndef BuildXInputLib
  45. #define BuildXInputLib        YES
  46. #endif
  47. #ifndef BuildXIE
  48. #define BuildXIE        NO
  49. #endif
  50. #ifndef BuildXTrapExt
  51. #define BuildXTrapExt        YES
  52. #endif
  53. #ifndef BuildXTrapLib
  54. #define BuildXTrapLib        YES
  55. #endif
  56. #ifndef BuildScreenSaverExt
  57. #define BuildScreenSaverExt    NO    /* not released yet */
  58. #endif
  59. #ifndef BuildScreenSaverLib
  60. #define BuildScreenSaverLib    NO    /* not released yet */
  61. #endif
  62. #ifndef InstallLibManPages
  63. #define InstallLibManPages    YES
  64. #endif
  65. #ifndef InstallXtermSetUID
  66. #define InstallXtermSetUID    YES    /* xterm needs to be set uid */
  67. #endif
  68. #ifndef InstallXinitConfig
  69. #define InstallXinitConfig    NO    /* install sample xinit config */
  70. #endif
  71. #ifndef InstallXdmConfig
  72. #define InstallXdmConfig    NO    /* install sample xdm config */
  73. #endif
  74. #ifndef XdmServersType            /* what Xservers files to use */
  75. #if BuildServer
  76. #define XdmServersType ws
  77. #else
  78. #define XdmServersType fs
  79. #endif
  80. #endif
  81. #ifndef InstallFSConfig
  82. #define InstallFSConfig        NO    /* install sample fs config */
  83. #endif
  84. #ifndef InstallAppDefFiles
  85. #define InstallAppDefFiles    YES    /* install application defaults */
  86. #endif
  87. #ifndef DebugLibX
  88. #define DebugLibX        NO    /* debugged X library */
  89. #endif
  90. #ifndef DebugLibXArchive
  91. #define DebugLibXArchive    NO    /* archive file of above */
  92. #endif
  93. #ifndef ProfileLibX
  94. #define ProfileLibX        NO    /* profiled X library */
  95. #endif
  96. #ifndef ProfileLibXArchive
  97. #define ProfileLibXArchive    NO    /* archive file of above */
  98. #endif
  99. #ifndef DebugOldLibX
  100. #define DebugOldLibX        NO    /* debugged old X library */
  101. #endif
  102. #ifndef ProfileOldLibX
  103. #define ProfileOldLibX        NO    /* profiled old X library */
  104. #endif
  105. #ifndef DebugLibXt
  106. #define DebugLibXt        NO    /* debugged toolkit library */
  107. #endif
  108. #ifndef ProfileLibXt
  109. #define ProfileLibXt        NO    /* profiled toolkit library */
  110. #endif
  111. #ifndef DebugLibXaw
  112. #define DebugLibXaw        NO    /* debugged widget library */
  113. #endif
  114. #ifndef ProfileLibXaw
  115. #define ProfileLibXaw        NO    /* profiled widget library */
  116. #endif
  117. #ifndef DebugLibXext
  118. #define DebugLibXext        NO    /* debugged Xext library */
  119. #endif
  120. #ifndef ProfileLibXext
  121. #define ProfileLibXext        NO    /* profiled Xext library */
  122. #endif
  123. #ifndef DebugLibXmu
  124. #define DebugLibXmu        NO    /* debugged Xmu library */
  125. #endif
  126. #ifndef ProfileLibXmu
  127. #define ProfileLibXmu        NO    /* profiled Xmu library */
  128. #endif
  129. #ifndef DebugLibXau
  130. #define DebugLibXau        NO    /* debugged auth library */
  131. #endif
  132. #ifndef ProfileLibXau
  133. #define ProfileLibXau        NO    /* profiled auth library */
  134. #endif
  135. #ifndef DebugLibXdmcp
  136. #define DebugLibXdmcp        NO    /* debugged XDMCP library */
  137. #endif
  138. #ifndef ProfileLibXdmcp
  139. #define ProfileLibXdmcp        NO    /* profiled XDMCP library */
  140. #endif
  141. #ifndef DebugLibXinput
  142. #define DebugLibXinput        NO    /* debugged Xi library */
  143. #endif
  144. #ifndef ProfileLibXinput
  145. #define ProfileLibXinput    NO    /* profiled Xi library */
  146. #endif
  147. #ifndef DebugLibXTest
  148. #define DebugLibXTest        NO    /* debugged Xtst library */
  149. #endif
  150. #ifndef ProfileLibXTest
  151. #define ProfileLibXTest        NO    /* profiled Xtst library */
  152. #endif
  153. #ifndef DebugLibXTrap
  154. #define DebugLibXTrap        NO    /* debugged XTrap library */
  155. #endif
  156. #ifndef ProfileLibXTrap
  157. #define ProfileLibXTrap        NO    /* profiled XTrap library */
  158. #endif
  159. #ifndef DebugLibPex
  160. #define DebugLibPex        NO    /* debugged PEX5 library */
  161. #endif
  162. #ifndef ProfileLibPex
  163. #define ProfileLibPex        NO    /* profiled PEX5 library */
  164. #endif
  165. #ifndef ManDirectoryRoot
  166. #ifdef ProjectRoot
  167. #define ManDirectoryRoot Concat(ProjectRoot,/man)
  168. #ifndef XmanLocalSearchPath
  169. #define XmanLocalSearchPath ManDirectoryRoot
  170. #endif
  171. #else
  172. #if SystemV4
  173. #define ManDirectoryRoot /usr/share/man
  174. #else
  175. #define ManDirectoryRoot /usr/man
  176. #endif
  177. #endif
  178. #endif
  179. #ifndef ManSuffix
  180. #define ManSuffix    n        /* use just one tab or cpp will die */
  181. #endif
  182. #ifndef LibManSuffix
  183. #define LibManSuffix    3        /* use just one tab or cpp will die */
  184. #endif
  185. #ifndef HasXdmAuth
  186. #define HasXdmAuth        NO    /* if you can not use XDM-AUTH* */
  187. #endif
  188. #ifndef BDFTOSNFFILT
  189. #define BDFTOSNFFILT -DBDFTOSNFFILT=\"$(BINDIR)/bdftosnf\"
  190. #endif
  191. #ifndef SHELLPATH
  192. #define SHELLPATH -DSHELLPATH=\"/bin/sh\"
  193. #endif
  194. #ifndef ZBDFTOSNFFILT
  195. #define ZBDFTOSNFFILT -DZBDFTOSNFFILT=\"UNCOMPRESSPATH" | $(BINDIR)/bdftosnf $(FONTCFLAGS)\""
  196. #endif
  197. #ifndef FontFilters
  198. #define FontFilters BDFTOSNFFILT SHELLPATH ZBDFTOSNFFILT
  199. #endif
  200. #ifndef PrimaryScreenResolution
  201. #define PrimaryScreenResolution 72        /* a common resolution */
  202. #endif
  203. #ifndef DefaultFontPath
  204. #if PrimaryScreenResolution < 88        /* (75 + 100) / 2 */
  205. #define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/Speedo/,$(FONTDIR)/Type1/,$(FONTDIR)/75dpi/,$(FONTDIR)/100dpi/
  206. #else
  207. #define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/Speedo/,$(FONTDIR)/Type1/,$(FONTDIR)/100dpi/,$(FONTDIR)/75dpi/
  208. #endif
  209. #endif
  210. #ifndef DefaultRGBDatabase
  211. #define DefaultRGBDatabase $(LIBDIR)/rgb
  212. #endif
  213. #ifndef FontCompilerFlags
  214. #define FontCompilerFlags -t
  215. #endif
  216. #ifndef ConnectionFlags
  217. #if (SystemV || SystemV4) && !HasSockets
  218. #define ConnectionFlags -DSTREAMSCONN
  219. #else
  220. #define ConnectionFlags -DTCPCONN -DUNIXCONN
  221. #endif
  222. #endif
  223. #ifndef FontOSDefines
  224. #define FontOSDefines /**/
  225. #endif
  226. #ifndef FontDefines
  227. #define FontDefines -DFONT_SNF -DFONT_BDF -DFONT_PCF -DCOMPRESSED_FONTS FontOSDefines
  228. #endif
  229. #ifndef ExtensionOSDefines
  230. #define ExtensionOSDefines /**/
  231. #endif
  232. #ifndef ExtensionDefines
  233. #ifndef PexDefines
  234. #if BuildPexExt
  235. #define PexDefines -DPEXEXT
  236. #else
  237. #define PexDefines /**/
  238. #endif
  239. #endif
  240. #ifndef ShmDefines
  241. #if HasShm
  242. #define ShmDefines -DMITSHM
  243. #else
  244. #define ShmDefines /**/
  245. #endif
  246. #endif
  247. #ifndef XInputDefines
  248. #if BuildXInputExt
  249. #define XInputDefines -DXINPUT
  250. #else
  251. #define XInputDefines /**/
  252. #endif
  253. #endif
  254. #ifndef XTrapDefines
  255. #if BuildXTrapExt
  256. #define XTrapDefines -DXTRAP
  257. #else
  258. #define XTrapDefines /**/
  259. #endif
  260. #endif
  261. #ifndef ScreenSaverDefines
  262. #if BuildScreenSaverExt
  263. #define ScreenSaverDefines -DSCREENSAVER
  264. #else
  265. #define ScreenSaverDefines /**/
  266. #endif
  267. #endif
  268. #ifndef XIEdefines
  269. #if BuildXIE
  270. #define XIEdefines -DXIE
  271. #else
  272. #define XIEdefines /**/
  273. #endif
  274. #endif
  275. #ifndef BaseExtensionDefines
  276. #define BaseExtensionDefines -DSHAPE -DMULTIBUFFER -DMITMISC -DXTEST -DBIGREQS PexDefines ShmDefines XInputDefines XTrapDefines ScreenSaverDefines XIEdefines
  277. #endif
  278. #define ExtensionDefines BaseExtensionDefines ExtensionOSDefines
  279. #endif
  280. #ifndef ServerExtraDefines
  281. #define ServerExtraDefines -DXDMCP -DPIXPRIV
  282. #endif
  283. #ifndef ServerOSDefines
  284. #define ServerOSDefines /**/
  285. #endif
  286. #ifndef ServerDefines
  287. #define ServerDefines StandardDefines ServerExtraDefines ExtensionDefines ServerOSDefines
  288. #endif
  289. #ifndef PexDipexDefines
  290. #define PexDipexDefines /**/
  291. #endif
  292. #ifndef PexDdpexDefines
  293. #define PexDdpexDefines /**/
  294. #endif
  295. #ifndef PexPhigsDefines
  296. #ifndef PexShmIPC
  297. #define PexShmIPC HasShm
  298. #endif
  299. #if PexShmIPC
  300. #define PexPhigsDefines /**/
  301. #else
  302. #define PexPhigsDefines -DPEX_API_SOCKET_IPC
  303. #endif
  304. #endif
  305. #ifndef PexClientDefines
  306. #define PexClientDefines -DPEX_SI_PHIGS
  307. #endif
  308. #ifndef PhigsInclude
  309. #ifdef UseInstalled
  310. #define PhigsInclude -I$(INCDIR)
  311. #else
  312. #define PhigsInclude -I$(BUILDINCDIR)
  313. #endif
  314. #endif
  315. #ifndef PexCDebugFlags
  316. #define PexCDebugFlags DebuggableCDebugFlags
  317. #endif
  318. #ifndef PexCCOptions
  319. #ifdef LibraryCCOptions
  320. #define PexCCOptions LibraryCCOptions
  321. #else
  322. #define PexCCOptions DefaultCCOptions
  323. #endif
  324. #endif
  325. #ifndef DefaultFSConfigFile
  326. #define DefaultFSConfigFile $(LIBDIR)/fs/config
  327. #endif
  328. #ifndef BinDir
  329. #ifdef ProjectRoot
  330. #define BinDir Concat(ProjectRoot,/bin)
  331. #else
  332. #define BinDir /usr/bin/X11
  333. #endif
  334. #endif
  335. #ifndef BuildIncRoot
  336. #define BuildIncRoot $(TOP)
  337. #endif
  338. #ifndef BuildIncTop
  339. #define BuildIncTop ..        /* relative to $(TOP)/X11 */
  340. #endif
  341. #ifndef LibDir
  342. #define LibDir $(USRLIBDIR)/X11
  343. #endif
  344. #ifndef ConfigDir
  345. #define ConfigDir $(LIBDIR)/config
  346. #endif
  347. #ifndef LintlibDir
  348. #define LintlibDir $(USRLIBDIR)/lint
  349. #endif
  350. #ifndef FontDir
  351. #define FontDir $(LIBDIR)/fonts
  352. #endif
  353. #ifndef AdmDir
  354. #define AdmDir /usr/adm
  355. #endif
  356. #ifndef XinitDir
  357. #define XinitDir $(LIBDIR)/xinit
  358. #endif
  359. #ifndef XdmDir
  360. #define XdmDir $(LIBDIR)/xdm
  361. #endif
  362. #ifndef XdmConfigurationSubdirectory        /* under xdm sources */
  363. #define XdmConfigurationSubdirectory config
  364. #endif
  365. #ifndef TwmDir
  366. #define TwmDir $(LIBDIR)/twm
  367. #endif
  368. #ifndef ManPath
  369. #define ManPath ManDirectoryRoot
  370. #endif
  371. #ifndef ManSourcePath
  372. #define ManSourcePath $(MANPATH)/man
  373. #endif
  374. #ifndef ManDir
  375. #define ManDir $(MANSOURCEPATH)$(MANSUFFIX)
  376. #endif
  377. #ifndef LibmanDir
  378. #define LibmanDir $(MANSOURCEPATH)$(LIBMANSUFFIX)
  379. #endif
  380. #ifndef NlsDir
  381. #define NlsDir $(LIBDIR)/nls
  382. #endif
  383. #ifndef PexApiDir
  384. #define PexApiDir $(LIBDIR)/PEX
  385. #endif
  386. #ifndef XFileSearchPathBase
  387. /* avoid SCCS keyword */
  388. #define XFileSearchPathBase Concat4($(LIBDIR)/%L/%T/%N%C,%S:$(LIBDIR)/%l/%T/%N%C,%S:$(LIBDIR)/%T/%N%C,%S:$(LIBDIR)/%L/%T/%N%S:$(LIBDIR)/%l/%T/%N%S:$(LIBDIR)/%T/%N%S)
  389. #endif
  390. #ifndef XFileSearchPathDefault
  391. #ifdef XAppLoadDir
  392. /* avoid SCCS keyword */
  393. #define XFileSearchPathDefault XAppLoadDir/Concat(%N%C,%S):XAppLoadDir/%N%S:XFileSearchPathBase
  394. #else
  395. #define XFileSearchPathDefault XFileSearchPathBase
  396. #endif
  397. #endif
  398. #ifndef XAppLoadDir
  399. #define XAppLoadDir $(LIBDIR)/app-defaults
  400. #endif
  401. #ifndef XtErrorPrefix
  402. #define XtErrorPrefix /* as empty string */
  403. #endif
  404. #ifndef XtExtraDefines
  405. #define XtExtraDefines /* as empty string */
  406. #endif
  407. #ifndef XtWarningPrefix
  408. #define XtWarningPrefix /* as empty string */
  409. #endif
  410. #ifndef OsNameDefines
  411. #define OsNameDefines /* as nothing */
  412. #endif
  413. #ifndef DefaultUserPath            /* for xdm */
  414. #define DefaultUserPath :/bin:/usr/bin:$(BINDIR):/usr/ucb
  415. #endif
  416. #ifndef DefaultSystemPath        /* for xdm */
  417. #define DefaultSystemPath /etc:/bin:/usr/bin:$(BINDIR):/usr/ucb
  418. #endif
  419. #ifndef DefaultSystemShell        /* for xdm to set in SHELL */
  420. #define DefaultSystemShell BourneShell
  421. #endif
  422. #ifndef UseCCMakeDepend            /* use slow cc -E script */
  423. #define UseCCMakeDepend NO
  424. #endif
  425. #ifndef DependDir
  426. #if UseCCMakeDepend
  427. #define DependDir $(SCRIPTSRC)
  428. #else
  429. #define DependDir $(UTILSRC)/makedepend
  430. #endif
  431. #endif
  432. #ifndef ContribDir
  433. #define ContribDir $(TOP)/../contrib    /* contrib is outside core tree */
  434. #endif
  435. #ifndef DependCmd
  436. #define DependCmd $(DEPENDSRC)/makedepend
  437. #endif
  438. #ifndef RemoveTargetProgramByMoving
  439. #define RemoveTargetProgramByMoving NO
  440. #endif
  441. #ifndef AllocateLocalDefines
  442. #define AllocateLocalDefines /**/
  443. #endif
  444.  
  445. #ifndef ForceNormalLib
  446. #define ForceNormalLib (HasSaberC | HasGcc)
  447. #endif
  448. #ifndef SharedLibX
  449. #define SharedLibX HasSharedLibraries
  450. #endif
  451. #ifndef NormalLibX
  452. #define NormalLibX (!SharedLibX | ForceNormalLib)
  453. #endif
  454. #ifndef SharedOldLibX
  455. #define SharedOldLibX HasSharedLibraries
  456. #endif
  457. #ifndef NormalOldLibX
  458. #define NormalOldLibX (!SharedOldLibX | ForceNormalLib)
  459. #endif
  460. #ifndef SharedLibXt
  461. #define SharedLibXt HasSharedLibraries
  462. #endif
  463. #ifndef NormalLibXt
  464. #define NormalLibXt (!SharedLibXt | ForceNormalLib)
  465. #endif
  466. #ifndef SharedLibXaw
  467. #define SharedLibXaw HasSharedLibraries
  468. #endif
  469. #ifndef NormalLibXaw
  470. #define NormalLibXaw (!SharedLibXaw | ForceNormalLib)
  471. #endif
  472. #ifndef SharedLibXmu
  473. #define SharedLibXmu HasSharedLibraries
  474. #endif
  475. #ifndef NormalLibXmu
  476. #define NormalLibXmu (!SharedLibXmu | ForceNormalLib)
  477. #endif
  478. #ifndef SharedLibXau
  479. #define SharedLibXau NO        /* don't need shared form */
  480. #endif
  481. #ifndef NormalLibXau
  482. #define NormalLibXau (!SharedLibXau | ForceNormalLib)
  483. #endif
  484. #ifndef SharedLibXdmcp
  485. #define SharedLibXdmcp NO    /* don't need shared form */
  486. #endif
  487. #ifndef NormalLibXdmcp
  488. #define NormalLibXdmcp (!SharedLibXdmcp | ForceNormalLib)
  489. #endif
  490. #ifndef SharedLibXext
  491. #define SharedLibXext HasSharedLibraries
  492. #endif
  493. #ifndef NormalLibXext
  494. #define NormalLibXext (!SharedLibXext | ForceNormalLib)
  495. #endif
  496. #ifndef SharedLibXinput
  497. #define SharedLibXinput HasSharedLibraries
  498. #endif
  499. #ifndef NormalLibXinput
  500. #define NormalLibXinput (!SharedLibXinput | ForceNormalLib)
  501. #endif
  502. #ifndef SharedLibXTest
  503. #define SharedLibXTest HasSharedLibraries
  504. #endif
  505. #ifndef NormalLibXTest
  506. #define NormalLibXTest (!SharedLibXTest | ForceNormalLib)
  507. #endif
  508. #ifndef SharedLibXTrap
  509. #define SharedLibXTrap     HasSharedLibaries
  510. #endif
  511. #ifndef NormalLibXTrap
  512. #define NormalLibXTrap     (!SharedLibXTrap | ForceNormalLib)
  513. #endif
  514. #ifndef SharedLibPex
  515. #define SharedLibPex HasSharedLibraries
  516. #endif
  517. #ifndef NormalLibPex
  518. #define NormalLibPex (!SharedLibPex | ForceNormalLib)
  519. #endif
  520. #ifndef SharedLibPhigs
  521. #define SharedLibPhigs NO    /* XXX - haven't made it sharable yet */
  522. #endif
  523. #ifndef NormalLibPhigs
  524. #define NormalLibPhigs (!SharedLibPhigs | ForceNormalLib)
  525. #endif
  526. #ifndef NormalLibFS
  527. #define NormalLibFS (!SharedLibFS | ForceNormalLib)
  528. #endif
  529.  
  530.  
  531. #ifndef DoInstallExtensionsIntoXlib
  532. #define DoInstallExtensionsIntoXlib NO    /* merge libXext.a into libX11.a */
  533. #endif
  534.  
  535. XCOMM -------------------------------------------------------------------------
  536. XCOMM X Window System make variables; this need to be coordinated with rules
  537.  
  538. /*
  539.  * This list must be reflected in the DIRS_TO_BUILD list in the top-level
  540.  * Makefile.
  541.  */
  542.           PATHSEP = /            /* for building filenames */
  543.         USRLIBDIR = UsrLibDir        /* nonshared libraries */
  544.          SHLIBDIR = ShLibDir            /* shared libraries */
  545.            BINDIR = BinDir        /* programs */
  546.           INCROOT = IncRoot        /* base of where to put header files */
  547.      BUILDINCROOT = BuildIncRoot    /* base of build loc */
  548.       BUILDINCDIR = $(BUILDINCROOT)/X11
  549.       BUILDINCTOP = BuildIncTop        /* top relative to BUILDINCDIR */
  550.            INCDIR = $(INCROOT)/X11    /* header files, must end in X11 */
  551.            ADMDIR = AdmDir        /* server log files */
  552.            LIBDIR = LibDir        /* rgb, XErrorDB, etc. */
  553.         CONFIGDIR = ConfigDir        /* build configuration information */
  554.        LINTLIBDIR = LintlibDir        /* lint libraries */
  555.  
  556.           FONTDIR = FontDir        /* font directories */
  557.          XINITDIR = XinitDir        /* xinit config files */
  558.            XDMDIR = XdmDir        /* xdm config files */
  559.            TWMDIR = TwmDir        /* twm config files */
  560.           MANPATH = ManPath        /* top of manual page tree */
  561.     MANSOURCEPATH = ManSourcePath    /* prefix for man page sources */
  562.         MANSUFFIX = ManSuffix        /* suffix for man pages */
  563.      LIBMANSUFFIX = LibManSuffix    /* suffix for library man pages */
  564.            MANDIR = ManDir        /* man pages for commands */
  565.         LIBMANDIR = LibmanDir        /* man pages for library routines */
  566.            NLSDIR = NlsDir        /* nls files */
  567.         PEXAPIDIR = PexApiDir        /* PEX support files */
  568.       XAPPLOADDIR = XAppLoadDir        /* application default resource dir */
  569.        FONTCFLAGS = FontCompilerFlags
  570.  
  571.      INSTAPPFLAGS = $(INSTDATFLAGS)    /* XXX - this should go away - XXX */
  572.  
  573. #ifdef UseInstalled
  574.             IMAKE = imake        /* assume BINDIR in path */
  575.            DEPEND = makedepend        /* assume BINDIR in path */
  576.               RGB = rgb            /* assume BINDIR in path */
  577. #ifdef SnfFonts
  578.             FONTC = bdftosnf        /* assume BINDIR in path */
  579. #else
  580.             FONTC = bdftopcf        /* assume BINDIR in path */
  581. #endif
  582.         MKFONTDIR = mkfontdir        /* assume BINDIR in path */
  583.         MKDIRHIER = BourneShell $(BINDIR)/mkdirhier
  584. #else
  585.             IMAKE = $(IMAKESRC)/imake
  586.            DEPEND = DependCmd
  587.               RGB = $(RGBSRC)/rgb
  588. #ifdef SnfFonts
  589.             FONTC = $(BDFTOSNFSRC)/bdftosnf
  590. #else
  591.             FONTC = $(BDFTOPCFSRC)/bdftopcf
  592. #endif
  593.         MKFONTDIR = $(MKFONTDIRSRC)/mkfontdir
  594.         MKDIRHIER = BourneShell $(SCRIPTSRC)/mkdirhier.sh
  595. #endif
  596.  
  597.         CONFIGSRC = $(TOP)/config
  598.        DOCUTILSRC = $(TOP)/doc/util
  599.         CLIENTSRC = $(TOP)/clients
  600.           DEMOSRC = $(TOP)/demos
  601.            LIBSRC = $(TOP)/lib
  602.           FONTSRC = $(TOP)/fonts
  603.        INCLUDESRC = $(TOP)/X11
  604.         SERVERSRC = $(TOP)/server
  605.           UTILSRC = $(TOP)/util
  606.         SCRIPTSRC = $(UTILSRC)/scripts
  607.        EXAMPLESRC = $(TOP)/examples
  608.        CONTRIBSRC = ContribDir
  609.            DOCSRC = $(TOP)/doc
  610.            RGBSRC = $(TOP)/rgb
  611.         DEPENDSRC = DependDir
  612.          IMAKESRC = $(CONFIGSRC)
  613.          XAUTHSRC = $(LIBSRC)/Xau
  614.           XLIBSRC = $(LIBSRC)/X
  615.            XMUSRC = $(LIBSRC)/Xmu
  616.        TOOLKITSRC = $(LIBSRC)/Xt
  617.        AWIDGETSRC = $(LIBSRC)/Xaw
  618.        OLDXLIBSRC = $(LIBSRC)/oldX
  619.       XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  620. #ifdef SnfFonts
  621.       BDFTOSNFSRC = $(FONTSRC)/clients/bdftosnf
  622. #else
  623.       BDFTOPCFSRC = $(FONTSRC)/clients/bdftopcf
  624. #endif
  625.      MKFONTDIRSRC = $(FONTSRC)/clients/mkfontdir
  626.          FSLIBSRC = $(FONTSRC)/lib/fs
  627.     FONTSERVERSRC = $(FONTSRC)/server
  628.      EXTENSIONSRC = $(TOP)/extensions
  629.          XILIBSRC = $(EXTENSIONSRC)/lib/xinput
  630.       XTESTLIBSRC = $(EXTENSIONSRC)/lib/xtest
  631.         PEXLIBSRC = $(EXTENSIONSRC)/lib/PEXlib
  632.       PHIGSLIBSRC = $(EXTENSIONSRC)/lib/PEX
  633.  
  634. /*
  635.  * _Use - makes a choice based on UseInstalled.
  636.  */
  637. #ifndef _Use
  638. #ifdef UseInstalled
  639. #define _Use(a,b) a
  640. #else
  641. #define _Use(a,b) b
  642. #endif
  643. #endif
  644.  
  645. /*
  646.  * _UseCat - combination of _Use and Concat.
  647.  *           exists to avoid problems with some preprocessors
  648.  */
  649. #ifndef _UseCat
  650. #if (__STDC__ && !defined(UnixCpp)) || defined(AnsiCpp)
  651. #ifdef UseInstalled
  652. #define _UseCat(a,b,c) a##c
  653. #else
  654. #define _UseCat(a,b,c) b##c
  655. #endif
  656. #else
  657. #ifdef UseInstalled
  658. #define _UseCat(a,b,c) a/**/c
  659. #else
  660. #define _UseCat(a,b,c) b/**/c
  661. #endif
  662. #endif
  663. #endif
  664.  
  665. #ifndef ShLibIncludeFile
  666. /* need this to make ANSI-style preprocessors happy */
  667. #define ShLibIncludeFile <noop.rules>
  668. #endif
  669.  
  670. #include ShLibIncludeFile
  671.  
  672. #if HasSharedLibraries
  673.         SOXLIBREV = SharedXlibRev
  674.           SOXTREV = SharedXtRev
  675.          SOXAWREV = SharedXawRev
  676.         SOOLDXREV = SharedOldXRev
  677.          SOXMUREV = SharedXmuRev
  678.         SOXEXTREV = SharedXextRev
  679.       SOXINPUTREV = SharedXinputRev
  680.        SOXTESTREV = SharedXTestRev
  681.        SOXTRAPREV = SharedXTrapRev
  682.          SOPEXREV = SharedPexRev
  683.           SOFSREV = SharedFSRev
  684.     STATICXLIBREV = StaticSharedXlibRev
  685. #endif
  686.  
  687. #if UseScoMalloc
  688. SCOMALLOC = $(LIBSRC)/malloc/libmalloc.a
  689. #endif
  690.  
  691. #if !SharedLibXext
  692.   DEPEXTENSIONLIB = _UseCat($(USRLIBDIR),$(EXTENSIONSRC)/lib,/libXext.a)
  693.      EXTENSIONLIB = LoaderLibPrefix _Use(-lXext, $(DEPEXTENSIONLIB))
  694. #endif
  695. #if !SharedLibX
  696.           DEPXLIB = $(DEPEXTENSIONLIB) _UseCat($(USRLIBDIR),$(XLIBSRC),/libX11.a)
  697.          XLIBONLY = LoaderLibPrefix _Use(-lX11,$(XLIBSRC)/libX11.a)
  698.              XLIB = $(EXTENSIONLIB) $(XLIBONLY) $(SCOMALLOC)
  699. #endif
  700. #if UseSharedLibraries
  701. #if SharedLibX
  702.           DEPXLIB = LoaderLibPrefix _Use($(USRLIBDIR)/libX11.so,$(XLIBSRC)/libX11.a)
  703. #else
  704.           DEPXLIB = $(DEPEXTENSIONLIB) _Use(,$(XLIBSRC)/libX11.so)
  705. #endif
  706.              XLIB = $(EXTENSIONLIB) _Use(-lX11,-L$(XLIBSRC) -lX11) $(SCOMALLOC)
  707. #endif
  708.       DEPXAUTHLIB = _UseCat($(USRLIBDIR),$(XAUTHSRC),/libXau.a)
  709.          XAUTHLIB = LoaderLibPrefix _Use(-lXau,$(DEPXAUTHLIB))
  710.       DEPXDMCPLIB = _UseCat($(USRLIBDIR),$(XDMCPLIBSRC),/libXdmcp.a)
  711.          XDMCPLIB = LoaderLibPrefix _Use(-lXdmcp,$(DEPXDMCPLIB))
  712. #if !SharedLibXmu
  713.         DEPXMULIB = _UseCat($(USRLIBDIR),$(XMUSRC),/libXmu.a)
  714.            XMULIB = LoaderLibPrefix _Use(-lXmu,$(DEPXMULIB))
  715. #endif
  716. #if !SharedOldLibX
  717.        DEPOLDXLIB = _UseCat($(USRLIBDIR),$(OLDXLIBSRC),/liboldX.a)
  718.           OLDXLIB = LoaderLibPrefix _Use(-loldX,$(DEPOLDXLIB))
  719. #endif
  720. #if !SharedLibXt
  721.       DEPXTOOLLIB = _UseCat($(USRLIBDIR),$(TOOLKITSRC),/libXt.a)
  722.          XTOOLLIB = LoaderLibPrefix _Use(-lXt,$(DEPXTOOLLIB))
  723. #endif
  724. #if !SharedLibXaw
  725.         DEPXAWLIB = _UseCat($(USRLIBDIR),$(AWIDGETSRC),/libXaw.a)
  726.            XAWLIB = LoaderLibPrefix _Use(-lXaw,$(DEPXAWLIB))
  727. #endif
  728. #if !SharedLibXinput
  729.         DEPXILIB = _UseCat($(USRLIBDIR),$(XILIBSRC),/libXi.a)
  730.            XILIB = LoaderLibPrefix _Use(-lXi,$(DEPXILIB))
  731. #endif
  732. #if !SharedLibXTest
  733.      DEPXTESTLIB = _UseCat($(USRLIBDIR),$(XTESTLIBSRC),/libXtst.a)
  734.         XTESTLIB = LoaderLibPrefix _Use(-lXtst,$(DEPXTESTLIB))
  735. #endif
  736. #if !SharedLibPex
  737.        DEPPEXLIB = _UseCat($(USRLIBDIR),$(PEXLIBSRC),/libPEX5.a)
  738.           PEXLIB = LoaderLibPrefix _Use(-lPEX5,$(DEPPEXLIB))
  739. #endif
  740. #if !SharedLibPhigs
  741.         DEPPHIGSLIB = _UseCat($(USRLIBDIR),$(PHIGSLIBSRC),/libphigs.a)
  742.            PHIGSLIB = LoaderLibPrefix _Use(-lphigs,$(DEPPHIGSLIB))
  743. #endif
  744.        DEPXBSDLIB = _UseCat($(USRLIBDIR),$(LIBSRC)/Berk,/libXbsd.a)
  745.           XBSDLIB = LoaderLibPrefix _Use(-lXbsd,$(DEPXBSDLIB))
  746.  
  747.  LINTEXTENSIONLIB = _UseCat($(LINTLIBDIR),$(EXTENSIONSRC)/lib,/llib-lXext.ln)
  748.          LINTXLIB = _UseCat($(LINTLIBDIR),$(XLIBSRC),/llib-lX11.ln)
  749.           LINTXMU = _UseCat($(LINTLIBDIR),$(XMUSRC),/llib-lXmu.ln)
  750.         LINTXTOOL = _UseCat($(LINTLIBDIR),$(TOOLKITSRC),/llib-lXt.ln)
  751.           LINTXAW = _UseCat($(LINTLIBDIR),$(AWIDGETSRC),/llib-lXaw.ln)
  752.            LINTXI = _UseCat($(LINTLIBDIR),$(XILIBSRC),/llib-lXi.ln)
  753.           LINTPEX = _UseCat($(LINTLIBDIR),$(PEXLIBSRC),/llib-lPEX5.ln)
  754.         LINTPHIGS = _UseCat($(LINTLIBDIR),$(PHIGSLIBSRC),/llib-lphigs.ln)
  755.  
  756. #ifndef XawClientDepLibs
  757. #define XawClientDepLibs $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  758. #endif
  759. #ifndef XawClientLibs
  760. #define XawClientLibs $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
  761. #endif
  762.  
  763. #ifndef NeedDefaultDepLibs
  764. #define NeedDefaultDepLibs YES
  765. #endif
  766.  
  767. #if NeedDefaultDepLibs
  768. /*
  769.  * Individual libraries should override this
  770.  */
  771. #if HasSharedLibraries || UseInstalled
  772.           DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  773. #else
  774.           DEPLIBS = $(LOCAL_LIBRARIES)
  775. #endif
  776.          DEPLIBS1 = $(DEPLIBS)
  777.          DEPLIBS2 = $(DEPLIBS)
  778.          DEPLIBS3 = $(DEPLIBS)
  779. #endif /* NeedDefaultDepLibs */
  780.  
  781. #if UseInstalledBaseLevel
  782.           DEPLIBS = 
  783.   DEPEXTENSIONLIB = 
  784.      EXTENSIONLIB = -lXext
  785.         DEPXMULIB = 
  786.            XMULIB = -lXmu
  787.       DEPXTOOLLIB = 
  788.          XTOOLLIB = -lXt
  789.       XLIBARCHIVE = $(EXTENSIONLIB) -lX11
  790. #if UseSharedLibraries
  791.              XLIB = $(EXTENSIONLIB) -lX11
  792. #else
  793.              XLIB = $(EXTENSIONLIB) -lX11
  794. #endif
  795.  
  796. #endif
  797.